package net.yb.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Product implements Serializable {
    private Integer pid;
    private String pname;
    private Double price;
    private String unit;
    private Integer stock;
    private Category category; // 商品所属分类， 对象属性
    private String info;
}
